<table width="100%" cellspacing="1" cellpadding="2" id="list-table">
    <tr>
       <#--
				<th>ID</th>
				
				-->
        <th>关联文章</th>
        <th>内容</th>
        <th>状态</th>
        <th>父亲文章</th>
        <th>评论作者</th>
         <th>创建时间</th>
        <th>操作</th>
    </tr>
<#if (articleCommentList?size>0) >
    <#list  articleCommentList as articleComment>
        <tr align="center" class="" >
        <#--
           <td width="10%" align="left" class="first-cell">
                <span>
                	 <#if (articleComment.commentId)??>
                
                ${articleComment.commentId}
                </#if>
                
                </span>
                
            </td>
            -->
            <td width="10%" align="left" class="first-cell">
                <span>
                	 <#if (articleComment.relationArticleId)??>
                
                ${articleComment.relationArticleId}
                </#if>
                
                </span>
                
            </td>
         
            <td width="10%">
            
             <#if (articleComment.content)??>
             ${articleComment.content}
             </#if>
            </td>
            <td width="5%">
             <#if (articleComment.status)??>
            <#if articleComment.status==1>  否
            <#elseif articleComment.status==2>
          		  是 
            </#if>
            </#if>
            </td>
      
            
            <td width="5%" align="right"> 
             <#if (articleComment.parentId)??>
            ${articleComment.parentId} 
            </#if></td>
                    
                     
            <td>
             <#if (articleComment.userId)??>
             </#if>
            ${articleComment.userId}</td>
            
                           
            <td>
             <#if (articleComment.addTime)??>
            
          
            ${articleComment.addTime?string("yyyy-MM-DD hh:mm:ss")}
            </#if>
            </td>
            <td width="24%" align="center">
            <a	href="../data/getarticleCommentegoryById.action?commentId=${articleComment.commentId}">编辑</a>|
            <a href="../data/deletearticleCommentegoryById.action?commentId=${articleComment.commentId}"	 onclick="{if(confirm('你确定要解除锁定吗？')){return true;}return false;}">删除</a>

            </td>
        </tr>
    </#list>
</#if>

</table>
<script type="text/javascript">
     listTable.action = "ajaxQueryarticleCommentegory.action";
     listTable.currentPage=${page.currentPage};
     listTable.pageCount=${(page.totalPage)?c};
     listTable.recordCount=${page.allRow};
 </script>
<!-- 分页 -->
<table id="page-table" cellspacing="0">
			<tr>
				<td align="right" nowrap="true">
					<div id="turn-page">
					共<span id="totalRecords">${page.allRow} </span>条记录&nbsp; 
					共<span	id="totalPages">${page.totalPage}</span> 页&nbsp;
				当前第<span	id="pageCurrent">${page.currentPage}</span>页&nbsp;  
	     
	     <!--也许可以换种方式，呵呵，不用人工输入，用下拉列表-->
	     每页显示记录条数 <input type='text' size='3' id='pageSize' value="${page.pageSize}" onkeypress="return listTable.changePageSize(event)" />
	   <!--查询动作-->
	    <input type='hidden' size='3' id='action' value="ajaxQueryArticle.action"/>
	       
							
						<span id="page-link">  
						<a	href="javascript:listTable.gotoPageFirst()">第一页</a> 
						<a	href="javascript:listTable.gotoPagePrev()">前一页</a> 
						<a	href="javascript:listTable.gotoPageNext()">下一页</a> 
						<a	href="javascript:listTable.gotoPageLast()">最后一页</a> 
						<select	id="gotoPage" onchange="listTable.gotoPage(this.value)">
						<#assign x=page.totalPage>
						<#assign y=page.currentPage>
						<#list 1 .. x as i>
						<#if y==i >
						    <option value="${i}" selected="selected">${i}</option>
						<#else>
							<option value="${i}" >${i}</option>
						</#if>
						</#list>
           </select>
        </span>
        </div>
        </td>
        
    </tr>
</table>
